package com.mjw.tender.service;

import com.mjw.tender.api.TbPermissionService;
import com.mjw.tender.domain.TbPermission;
import com.mjw.tender.mapper.TbPermissionMapper;
import org.apache.dubbo.config.annotation.Service;

import javax.annotation.Resource;
import java.util.List;

@Service(version = "1.0.0")
public class TbPermissionServiceImpl implements TbPermissionService {

    @Resource
    TbPermissionMapper tbPermissionMapper;

    @Override
    public List<TbPermission> selectByUserId(Long userid) {
        List list = tbPermissionMapper.selectByUserId(userid);
        return tbPermissionMapper.selectByUserId(userid);
    }
}
